home *** CD-ROM | disk | FTP | other *** search
/ Just Call Me Internet / Just Call Me Internet.iso / com / computer / casio_st / prog_fx / oisac2 / l_6680.txt < prev    next >
Text File  |  1994-03-01  |  915b  |  21 lines

  1. 10 MODE8:DIM:GOSUB900:c$=CHR$(5):f=95:DEFCHR$(252)="123E020000":DEFCHR$(253)="2E2A3A0000":r=0:s=0:t=0:u=0
  2. 45 CLS:PRINT"B(1,pÆ),B(1,p’) a<pÆ-p’<b";
  3. 50 z=r:s$="nÆ":GOSUB500:r=z
  4. 60 z=s:s$="äxÆ":GOSUB500:s=z
  5. 70 z=t:s$="n’":GOSUB500:t=z
  6. 80 z=u:s$="äx’":GOSUB500:u=z
  7. 90 CLS:PRINT"Confidence level (1-à)[%]";
  8. 95 z=f:s$="1-à":GOSUB500:f=z:IFf<0 ORf>100 THEN95
  9. 97 CLS:PRINT"B(1,pÆ),B(1,p’)   ";f;"%";TAB(0);".....";
  10. 100 p=(1-f/100)/2:sr=0:GOSUB"LIB0:S6410":GOSUB900:IFsr THEN*
  11. 110 j=s/r:k=u/t:z=j-k-x*SQR(((1-j)*j)/r+((1-k)*k)/t):GOSUB400:a=z
  12. 120 z=j-k+x*SQR(((1-j)*j)/r+((1-k)*k)/t):GOSUB400:b=z
  13. 130 PRINTc$;a;"< pÆ-p’ <";b;:a$=INPUT$(1,@):GOTO45
  14. 400 IFz THENz=ROUND(z,LOG(ABSz)-5)
  15. 410 RETURN
  16. 500 LOCATE0,1:PRINTc$;s$;"=";z;"?";:INPUT@10;z:LOCATE0,0:RETURN
  17. 900 ONERRORGOTO910:RETURN
  18. 910 IFERR=1 THENCLS:ONERRORGOTO0
  19. 920 IFERL=500 THENRESUME500
  20. 930 LOCATE0,1:PRINTc$;"not found";:z$=INPUT$(1,@):RESUME45
  21.